home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
lisp
/
clue.lha
/
clue
/
doc
/
clue.tex
/
node275_mn.html
< prev
next >
Wrap
Text File
|
1989-07-12
|
2KB
|
55 lines
<H3><A ID="SECTION007711100000000000000">
Stream I/O Model</A>
</H3><#5463#>
<A ID="4012"><tex2html_anchor_invisible_mark></A><A ID="4013"><tex2html_anchor_invisible_mark></A>
In the stream I/O model, an interactive application exchanges character data
with an <#4014#><TT>interactive-stream</TT><#4014#> contact<A ID="4015"><tex2html_anchor_invisible_mark></A>.
The stream I/O model represents applications which use a simple character-based
style of user interaction and do not rely upon additional input from
pointer devices. Such applications have the following generic structure.
<UL>
<LI>Create and open a stream.
</LI>
<LI>Perform application initialization.
</LI>
<LI>Read a command from the stream and execute it.
</LI>
<LI>Repeat the previous step until the
application terminates.
</LI>
</UL>
No explicit references to a <#4018#><TT>contact-display</TT><#4018#> object are necessary. The
stream I/O model is implemented in terms of the more basic event loop model,
<A ID="4019"><tex2html_anchor_invisible_mark></A>
using a <#4020#><TT>contact-display</TT><#4020#> object which is created automatically.
<P>
The <#4021#><TT>make-interactive-stream</TT><#4021#> function creates and returns an <#4022#><TT>interactive-stream</TT><#4022#> contact for
use by a stream I/O application.
<P>
<#4757#>
<#4614#><FONT SIZE="+1"><#4023#><B>make-interactive-stream Function</B><#4023#></FONT><#4614#>
<A ID="4024"><tex2html_anchor_invisible_mark></A>
<A ID="4025"><tex2html_anchor_invisible_mark></A>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10701#
</DIV><#4757#>
<P>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10704#
</DIV>
<P>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10705#
</DIV>
<P>
=0